package com.nami.message.acl.repository.inbox.convertor;


import com.nami.message.domain.model.pmsg.PChatMsgModel;
import com.nami.message.core.mybatis.dataobject.inbox.InboxMsgsDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface InBoxConvert {

    InBoxConvert INSTANCE = Mappers.getMapper(InBoxConvert.class);

    InboxMsgsDO convert(PChatMsgModel user);

    List<InboxMsgsDO> convertList(List<PChatMsgModel> users);

}
